# encoding: utf-8
from flask_marshmallow import base_fields
from flask_restplus_patched import Parameters

class Default(Parameters):
    pass

class RoleBaseParameters(Parameters):
    role_id = base_fields.String(
        description="角色ID",
        missing = None,
    )
    token_id = base_fields.String(
        description = "登陆ID",
        required = True,
    )

class RoleAddParameters(Parameters):
    role_name = base_fields.String(
        description = "角色名称",
        required = True,
    )
    desc = base_fields.String(
        description = "角色描述",
        missing = None,
    )
    token_id = base_fields.String(
        description = "登陆ID",
        required = True,
    )

class RoleUpdateParameters(Parameters):
    role_id = base_fields.String(
        description = "角色ID",
        required = True
    )
    desc = base_fields.String(
        description = "角色描述",
        missing = None,
    )
    token_id = base_fields.String(
        description = "登陆ID",
        required = True,
    )

class UpdateMenuPowerParameters(Parameters):
    role_id = base_fields.Integer(
        description = "角色ID",
        required = True,
    )

    menu_list = base_fields.String(
        description = "可见菜单ID列表",
        required = True
    )
    token_id = base_fields.String(
        description = "登陆ID",
        required = True,
    )

